import Layout from '@/views/layout/Layout'

const appraiserAdminRouter = {
    path: "/appraiser",
    component: Layout,
    redirect: "/appraiser/appraiser",
    name: "appraiser",
    alwaysShow: true,
    meta: {
      title: "评估师中心",
      icon: "pinggusi",
      roles: 'appraise_center'
    },
    children : [
      {
        path: "/appraiser/appraiserAdmin",
        component: () => import("@/views/appraiser/appraiserAdmin/appraisers"),
        name: "appraisers",
        meta: {
          title: "门店评估师管理",
          roles:'store_appriase_manager',
        }
      },
      {
        path: "/appraiser/myorder/orderDetails",
        component: () => import("@/views/appraiser/myorder/orderDetails/orderDetails.vue"),
		name: "orderDetails",
		hidden:true,
		meta: {
			title: "工单详情",
			roles:'worker_order_mgr',
		  }

	  },
	  {
        path: "/appraiser/myorder",
        component: () => import("@/views/appraiser/myorder/myorder"),
        name: "myorder",
        meta: {
          title: "我的工单",
          roles:'worker_order_mgr',
        }
      },
	  {
        path: "/appraiser/luxuryMenu",
        component: () => import("@/views/appraiser/luxuryMenu/luxuryMenu"),
        name: "luxuryMenu",
        meta: {
          title: "奢侈品预约估价",
          roles:'scp_menu_pa',
		},
		children:[
			{
				path: "luxuryOrderForm",
				component: () => import("@/views/appraiser/luxuryMenu/luxuryOrderForm/luxuryOrderForm"),
				name: "luxuryOrderForm",
				meta: {
					title: "奢侈品订单",
					roles:'scp_consign_order',
				}
			},
			{
				path: "luxuryWorkOrder",
				component: () => import("@/views/appraiser/luxuryMenu/luxuryWorkOrder/luxuryWorkOrder"),
				name: "luxuryWorkOrder",
				meta: {
					title: "奢侈品工单",
					roles:'scp_gj_gd',
				}
			}
		]

	  },
	  {
        path: "/appraiser/expressageMenu",
        component: () => import("@/views/appraiser/expressageMenu/expressageMenu"),
        name: "expressageMenu",
        meta: {
          title: "快递寄卖估价",
          roles:'kdjp_menu_gj',
		},
		children:[
			{
				path: "expressageOrderForm",
				component: () => import("@/views/appraiser/expressageMenu/expressageOrderForm/expressageOrderForm"),
				name: "expressageOrderForm",
				meta: {
					title: "快递寄卖接单",
					roles:'consign_order_kdjm',
				}
			},
			{
				path: "expressageWorkOrder",
				component: () => import("@/views/appraiser/expressageMenu/expressageWorkOrder/expressageWorkOrder"),
				name: "expressageWorkOrder",
				meta: {
					title: "快递寄卖工单",
					roles:'kdjm_gd',
				}
			}
		]

	  },
	  {
        path: "/appraiser/appDispatch",
        component: () => import("@/views/appraiser/appDispatch/appDispatch"),
        name: "appDispatch",
        meta: {
          title: "发货单",
          roles:'store_appriase_manager',
        }

	  }
    ]
}
export default appraiserAdminRouter
